#ifndef GPIODATAITEM_H
#define GPIODATAITEM_H

#include <QObject>

class GpioDataitem : public QObject
{
    Q_OBJECT
public:
    explicit GpioDataitem(QObject *parent = NULL);
    virtual ~GpioDataitem();

    Q_INVOKABLE void openHeat();
    Q_INVOKABLE void closeHeat();
    Q_INVOKABLE void openRefri();
    Q_INVOKABLE void closeRefri();

    Q_INVOKABLE void handlDeviceStatus(int pins ,int status);

    Q_INVOKABLE int getHeat();
    Q_INVOKABLE int getRefri();

    Q_INVOKABLE void openD1();
    Q_INVOKABLE void closeD1();
    Q_INVOKABLE int getD1();

    Q_INVOKABLE void openD2();
    Q_INVOKABLE void closeD2();
    Q_INVOKABLE int getD2();

    Q_INVOKABLE void openD3();
    Q_INVOKABLE void closeD3();
    Q_INVOKABLE int getD3();

    Q_INVOKABLE  void openD4();
    Q_INVOKABLE void closeD4();
    Q_INVOKABLE int getD4();

    Q_INVOKABLE void openPump();
    Q_INVOKABLE void closePump();
    Q_INVOKABLE int getPump();

    Q_INVOKABLE void openCo();
    Q_INVOKABLE void closeCo();
    Q_INVOKABLE int getCo();

signals:

public slots:
};

#endif // GPIODATAITEM_H
